-- GENERATED SPELL FOR [Hederine Manastalker] --


function spell0_7462(pUnit, Event) --@Mana Burn,n/a--
pUnit:FullCastSpellOnTarget(15980,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7462', 3000, 1)
end

function spell1_7462(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(13738,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7462', 15000, 1)
end

function Sorts_7462(pUnit, Event)
local choix_sorts_7462 = math.random(0, 1)
if choix_sorts_7462 == 0 then
pUnit:RegisterEvent('spell0_7462', 1, 1)
end
if choix_sorts_7462 == 1 then
pUnit:RegisterEvent('spell1_7462', 1, 1)
end
end

function mob7462_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7462', math.random(1500, 3000), 1)
end

function mob7462_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7462_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7462_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7462, 1, 'mob7462_Action')
RegisterUnitEvent(7462, 2, 'mob7462_Leave')
RegisterUnitEvent(7462, 3, 'mob7462_Kill')
RegisterUnitEvent(7462, 4, 'mob7462_Die')
